import request from '@/utils/request'

// 查询访问密钥列表
export function listAccessKeys(query) {
  return request({
    url: '/parking/accessKeys/list',
    method: 'get',
    params: query
  })
}

// 查询访问密钥详细
export function getAccessKeys(id) {
  return request({
    url: '/parking/accessKeys/' + id,
    method: 'get'
  })
}

// 新增访问密钥
export function addAccessKeys(data) {
  return request({
    url: '/parking/accessKeys',
    method: 'post',
    data: data
  })
}

// 修改访问密钥
export function updateAccessKeys(data) {
  return request({
    url: '/parking/accessKeys',
    method: 'put',
    data: data
  })
}

// 删除访问密钥
export function delAccessKeys(id) {
  return request({
    url: '/parking/accessKeys/' + id,
    method: 'delete'
  })
}
